package com.flyco.modules.stm.mapper;

import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.SqlParser;
import com.flyco.modules.stm.vo.StmStockEditVO;
import org.apache.ibatis.annotations.Param;
import com.flyco.modules.stm.entity.StmStoreInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @Description: 门店
 * @Author: flyco
 * @Date:   2020-09-18
 * @Version: V1.0
 */
@Repository
public interface StmStoreInfoMapper extends BaseMapper<StmStoreInfo> {
    @SqlParser(filter=true)
    void generateSku(@Param("partnerId") Long partnerId, @Param("storeId") Long storeId);

    @DS("store")
    @SqlParser(filter=true)
    void generateStoreStock(@Param("partnerId") Long partnerId, @Param("storeId") Long storeId);

    Long getNextStoreId();

    List<StmStoreInfo> getStoreAndChannel();
}
